@import url('https://fonts.googleapis.com/css?family=Press+Start+2P&display=swap');

#app{
  position: relative;
  background-color: #516dff;
  color: #fff;
  font-family: 'Press Start 2P', sans-serif;
  overflow: hidden;
  height: 100vh;
}

.screen{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  transition: margin .5s ease-out;
}

.screen.up{
  margin-top: -100vh;
}

.start_btn{
  width: 150px;
  height: 40px;
  margin-top: 30px;
  cursor: pointer;
  color: #516dff;
  font-size: 16px;
  border-radius: 5px;
}

.insects{
  display: flex;
}
.insects{
  margin-top: 30px;
}
.insects_item{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  border:2px solid #fff;
  padding-top: 10px;
  margin-right: 20px;
  cursor: pointer;
  transition: background .25s linear;
}

.insects_item:hover{
  background-color: #fff;
  color: #516dff;
}

.insects_name{
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.insects_img{
  width: 100px;
  height: 100px;
}

.game_container{
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.msg{
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 150px;
  width: 100%;
  height: 130px;
  background-color: rgba(0, 0, 0, .3);
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  visibility: hidden;
  z-index: 100;
  pointer-events: none;
}

.msg.show{
  visibility: visible;
  animation: showMsg 1s linear;
}

@keyframes showMsg{
  0%{
    transform: scale(0);
  }
  50%{
    transform: scale(1.5);
  }
  100%{
    transform: scale(1);
  }
}


.game_container .header{
  display: flex;
  justify-content: space-between;
  padding: 20px 30px;
  font-weight: 700;
  font-size: 22px;
}

.game_site{
  position: relative;
  flex: 1;
}


.game_site .insect_box{
  position: absolute;
  cursor: pointer;
  transition: transform 1s linear;
}

.insect_box.caught{
  transform: scale(0);
}